package com.sunjq.fetchdata.activity;

import com.sunjq.fetchdata.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class PutDataActivity extends Activity implements OnClickListener {

	Button refreshButton;
	EditText editText;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.put_data);
		refreshButton = (Button) findViewById(R.id.button);
		editText =  (EditText) findViewById(R.id.editText);
		refreshButton.setOnClickListener(this);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main_menu, menu);
		return true;
	}

	@Override
	public void onClick(View v) {
		char[] test = {'a','b','c'};
		editText.setText(test, 0, test.length);
		
	}

}
